Skip to content

Conversation

fehnomenal
Copy link
Contributor

Fix for sveltejs/svelte#14384

I just copied the svelte compiler's regex and adjusted the match array index.

Question: is it possible to directly use the regex from the svelte compiler?

@dominikg
Copy link
Member

good to go as a quick fix but we really need to do sth about the regex in general

@bluwy
Copy link
Member

bluwy commented Nov 21, 2024

I've merged this PR to main, but it looks like GitHub is down or something and not registering it yet, so the PR looks open now. The commit is already in main.

@fehnomenal
Copy link
Contributor Author

IMO in an ideal world the svelte compiler would forward the detected language. If this was ever implemented we could use that and keep the regex as a fallback for older svelte versions.

@bluwy bluwy merged commit d243a64 into sveltejs:main Nov 22, 2024
6 checks passed
@bluwy
Copy link
Member

bluwy commented Nov 22, 2024

I just tried to merge again and it seems to work now, but it created an empty commit in main.

@fehnomenal fehnomenal deleted the fix/script-re branch December 2, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants